package edu.scau.misp.backend_module.service;

import edu.scau.misp.backend_module.domain.OrderDeal;

import java.util.List;


public interface OrderDealService {
    /**
     *通过orderID获取数据
     * @param orderId
     * @return
     */
    public List<OrderDeal> getOrderDealById(Long orderId);

    /**
     *查询所有数据
     * @return
     */

    public List<OrderDeal> listAllOrderDeal();

    /**
     *根据实体信息返回符合要求的数据
     * @param orderDeal
     * @return
     */


    public List<OrderDeal> selectOrderDealList(OrderDeal orderDeal);

    /**
     *添加数据
     * @param orderDeal
     * @return
     */
    public int insertOrderDeal(OrderDeal orderDeal);

    /**
     *修改数据
     * @param orderDeal
     * @return
     */
    public int updateOrderDeal(OrderDeal orderDeal);

    /**
     *删除数据
     * @param orderId
     * @return
     */
    public int deleteOrderDealById(Long orderId);
}
